package com.bafa.front.events;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.debug.Debug;
import com.bafa.objects.PageBean;
import com.bafa.objects.Report;
import com.bafa.services.ReportServices;

public class DisplayLinksEvent extends Event {

	@Override
	public void doEvent(HttpServletRequest request,
			HttpServletResponse response, PageBean page) {
		Debug.debug(this.getClass(),"doEvent","Entering.....");
		request.setAttribute("LINKS",ReportServices.getReport("LINKS"));
		Debug.debug(this.getClass(),"doEvent","Links "+request.getAttribute("LINKS"));
		Debug.debug(this.getClass(),"doEvent","Links Report "+((Report)request.getAttribute("LINKS")).getReport());
	}

}
